package com.qianfeng.openapi.product.controller;

import com.qianfeng.openapi.product.dao.ProductDao;
import com.qianfeng.openapi.product.entity.Product;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/12/31
 * @Time: 下午2:09
 */
@RestController
public class ProductController {

    @RequestMapping("/product/info")
    public List<Product> product(@RequestParam("param_json") String param){
        System.out.println("param_json"+param);
        return ProductDao.getList();
    }


}
